<%--
  Created by IntelliJ IDEA.
  User: TianyuChen
  Date: 2020/3/12
  Time: 16:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>value</title>
  </head>
  <body>
    <h1>SpringMVC作用域传值的四种方式</h1>
    <h3>1 使用原生Servlet</h3>
    request: ${requestScope.req}
    <br/>
    session: ${sessionScope.session}
    <br/>
    application: ${applicationScope.application}
    <hr/>

    <h3>2 使用Map集合</h3>
    map: ${requestScope.map}
    <hr/>

    <h3>3 使用SpringMVC中的Model接口</h3>
    model: ${requestScope.model}
    <hr/>

    <h3>4 使用SpringMVC中的ModelAndView类</h3>
    mav: ${requestScope.mav}
    <hr/>
  </body>
</html>
